package com.famous.dagligen.iterator.right;

import lombok.extern.slf4j.Slf4j;

/**
 * @author zhengdalong
 * @version V1.0
 * @date 2019/8/17 4:36 PM
 */
@Slf4j
public class Order {
    public static void main(String[] args) {
        AbstractContainer<MenuItem> abstractContainer = new ChineseContainer();
        AbstractIterator<MenuItem> menuItemIterator = abstractContainer.getIterator();
        while (menuItemIterator.hasNext()) {
            MenuItem menuItem = menuItemIterator.next();
            log.info("menuItem:{}", menuItem.toString());
        }
    }
}
